import React, { useState } from 'react'
import imgs from '../../../../../public/邮箱图1.jpg'
function splitplot({ src }: any) {
    // 定义一个初始图片
    const [imgsUrl, setImgsUrl] = useState<any>(true)
    const handleError = () => {
        setImgsUrl(false)
    }
    return (
        <div>
            <img width={200} height={200} src={imgsUrl ? src : imgs} onError={handleError} alt="" />
        </div>
    )
}

export default splitplot
